﻿using System.Threading.Tasks;
using JX.Core;
using JX.Core.Entity;

namespace JX.Application
{
	/// <summary>
	/// 数据库表：ProcessStatusCode 的应用层服务接口.
	/// </summary>
	public partial interface IProcessStatusCodeServiceAppDapper : IServiceAppDapper<ProcessStatusCodeEntity>
	{
		/// <summary>
		/// 通过主键删除
		/// </summary>
		/// <returns></returns>
		bool Delete(int? flowID, int? processID, int? statusCode);
		/// <summary>
		/// 通过主键删除
		/// </summary>
		/// <returns></returns>
		Task<bool> DeleteAsync(int? flowID, int? processID, int? statusCode);
		
		/// <summary>
		/// 通过主键返回第一条信息的实体类。
		/// </summary>
		/// <returns></returns>
		ProcessStatusCodeEntity Get(int? flowID, int? processID, int? statusCode);
		/// <summary>
		/// 通过主键返回第一条信息的实体类。
		/// </summary>
		/// <returns></returns>
		Task<ProcessStatusCodeEntity> GetAsync(int? flowID, int? processID, int? statusCode);
	}
}